package net.huashitong.ssydt.provider.applepay.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 苹果支付配置文件
 *
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.10.09
 */
@Component
@ConfigurationProperties(prefix = "net.huashitong.apple-pay")
public class ApplePayConfig {

    private String iapProdVerifyUri = "https://buy.itunes.apple.com/verifyReceipt";

    private String iapSendboxVerifyUri = "https://sandbox.itunes.apple.com/verifyReceipt";

    private boolean prod = true;


    public String getIapProdVerifyUri() {
        return iapProdVerifyUri;
    }

    public void setIapProdVerifyUri(String iapProdVerifyUri) {
        this.iapProdVerifyUri = iapProdVerifyUri;
    }

    public String getIapSendboxVerifyUri() {
        return iapSendboxVerifyUri;
    }

    public void setIapSendboxVerifyUri(String iapSendboxVerifyUri) {
        this.iapSendboxVerifyUri = iapSendboxVerifyUri;
    }

    public boolean isProd() {
        return prod;
    }

    public void setProd(boolean prod) {
        this.prod = prod;
    }
}
